﻿using System;
using Core.Infrastructure.ScreenManager;

namespace Core.Infrastructure.EventArgs
{
    public class ScreenEventArgs
    {
        public ScreenType ScreenType { get; set; }
        public string RegionName { get; set; }
        public bool PerformAnimation { get; set; }
        public object NavigationArgs { get; set; }

        public override bool Equals(object obj)
        {
            if(obj == null)
            {
                throw new ArgumentNullException();
            }
            return (obj as ScreenEventArgs).RegionName == this.RegionName &&
                   (obj as ScreenEventArgs).ScreenType == this.ScreenType &&
                   (obj as ScreenEventArgs).PerformAnimation == this.PerformAnimation;
        }
    }
}
